/**
 * 
 */
package apache.lang;

import org.apache.commons.lang.StringUtils;

/**
 * StringUtilSplit.java. 2011-12-8下午5:14:06 @author LionBule.
 */
public class StringUtilSplit {

    /**
     * @param args
     */
    public static void main(String[] args) {
        String str = "a|b||c|d|";
        String[] res = StringUtils.splitPreserveAllTokens(str, '|');
        System.out.println(res.length);
    }

}
